package com.edu.mapper;

import com.edu.bean.Post;
import com.edu.bean.PostExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface PostMapper {

    List<Post> selectAllPost();

    long countByExample(PostExample example);

    int deleteByExample(PostExample example);

    int deleteByPrimaryKey(Integer pId);

    int insert(Post row);

    int insertSelective(Post row);

    List<Post> selectByExample(PostExample example);

    Post selectByPrimaryKey(Integer pId);

    int updateByExampleSelective(@Param("row") Post row, @Param("example") PostExample example);

    int updateByExample(@Param("row") Post row, @Param("example") PostExample example);

    int updateByPrimaryKeySelective(Post row);

    int updateByPrimaryKey(Post row);
}